﻿@using SistemaAdministracion.Models.ViewModels.Account
@model LoginUserModel
@{
    ViewBag.Title = "Login";
}

<h2>Login</h2>

@using (Html.BeginForm("Login", "Account", FormMethod.Post))
{
    @Html.DisplayNameFor(l => l.RutEmpresa)<br />
    @Html.TextBoxFor(l => l.RutEmpresa)
    @Html.ValidationMessageFor(l => l.RutEmpresa)
    <br />
    @Html.DisplayNameFor(l => l.UserName)<br />
    @Html.TextBoxFor(l => l.UserName)
    @Html.ValidationMessageFor(l => l.UserName)
    <br />
    @Html.DisplayNameFor(l => l.Password)<br />
    @Html.TextBoxFor(l => l.Password)
    @Html.ValidationMessageFor(l => l.Password)<br />

    <button>Login Me!</button>

    <h2>@ViewBag.Error</h2>
}